package com.kakavr.user.service;

import java.util.Map;

import com.kakavr.base.service.IBaseService;
import com.kakavr.page.Pagination;

public interface IUserRechargeService extends IBaseService {

	/**
	 * 阿里充值
	 * 
	 * @param map
	 */
	String addUserRechargeByAlipay(Map<String, Object> map);

	/**
	 * 微信充值
	 * 
	 * @param map
	 */
	String addUserRechargeByWXpay(Map<String, Object> map);

	/**
	 * 充值成功后返回
	 * 
	 * @param userId
	 *            用户id
	 * @param tradeno
	 *            充值流水号
	 * @param payment
	 *            实际支付金额
	 * @param disamount
	 *            用劵金额
	 */
	void updateUserRechargeByPay(Object userId, String tradeno, Object payment,
			Object disamount);

	/**
	 * 分页查询充值记录
	 * 
	 * @param map
	 * @return
	 */
	Pagination<Map<String, Object>> selectRechargeByPage(Map<String, Object> map);

	/**
	 * 统计各店铺剩余次数
	 * 
	 * @param map
	 * @return
	 */
	Pagination<Map<String, Object>> statisticsShopTotalCount(
			Map<String, Object> map);
	
	

}
